package com.solutec.tag16interfaces.figuren2;

public class Kreis implements Figur {
	int radius;
	
	@Override
	public double getFlaeche() {
		return radius*radius*3.14;
	}
	
	@Override
	public int compareTo(Figur f) {
		return (int) (getFlaeche() - f.getFlaeche());
	}
	
	
	@Override
	public String toString() {
		return "Kreis. R = " + radius;
	}
	
}
